//
//  SECMenuViewController.swift
//  aj
//
//  Created by leeqb on 12/11/15.
//  Copyright © 2015 powerlee. All rights reserved.
//

import UIKit

class SECMenuViewController: AJBaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.tableView.zeroInsets()
    }

    override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
        cell.zeroInsets()
    }
    
    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        tableView.deselectRowAtIndexPath(indexPath, animated: false)
        
        switch indexPath.row {
        case 0:
            let vc = LB("Security", vcName: "PassModifyVC") as! SECPassModifyViewController
            self.navigationController?.pushViewController(vc, animated: true)
            break
        case 1:
            let vc = LB("Security", vcName: "GestureVC") as! UIViewController
            self.navigationController?.pushViewController(vc, animated: true)
            break
        default:
            break
        }
    }

}
